<?php

namespace App\Models\Basic;

use App\Models\BaseModel;
use App\Models\Stock\ProductStock;

class Product extends BaseModel
{
    //
    protected $fillable = [
        'name',
        'code',
        'unit',
        'description',
        'supplier_id',
        'is_virtual',
        'status',
        'cost_price',
        'sale_price'
    ];

    protected $hidden = [
    ];

    public function productStocks()
    {
        return $this->hasMany(ProductStock::class, 'product_id', 'id');
    }
}
